package co.wangdao.xingshaoye.view.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import co.wangdao.xingshaoye.R;

/**
 * Created by Administrator on 2016/3/1 0001.
 */
public class AddaddressActivity extends Activity implements OnClickListener {

    private LinearLayout addnewaddress;
    private RelativeLayout diqu;

    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_addaddress);

        initView();

        ImageView back = (ImageView) findViewById(R.id.fanhui);
        back.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });

//        EditText username = (EditText) findViewById(R.id.username);
//        username.setSelection(username.getHint().length());

    }


    @Override
    public void onClick(View v) {

    }

    private void initView(){
        diqu = (RelativeLayout) findViewById(R.id.diqu);
        diqu.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(AddaddressActivity.this,MapLocationActivity.class);
                startActivity(intent);
            }
        });

    }



}
